﻿using Inovout.Cloud.Data.Blob.Service;
using Inovout.Cloud.Web.Http;
using System.Web.Http;

namespace Inovout.Cloud.Storage.Web.Controllers
{
    public class ReportController : CloudHttpController
    {
        [HttpGet]
        [Route("manager/{owner}")]
        public long GetMembershipUsedStorageSpace(string owner)
        {
            IDirectoryService directoryService = ComponentRegistry.Resolve<IDirectoryService>();
            return directoryService.GetUsedSpace(owner);
        }
    }
}